//package com.coke.spring.seata.fegin.fallback;
//
//import com.coke.spring.seata.fegin.StockClient;
//import feign.hystrix.FallbackFactory;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * @author cwm
// * @Description TODO
// * @date 2021/9/3 下午3:51
// * @Version 1.0
// */
//@Component
//@Slf4j
//public class StockFallBack implements FallbackFactory<StockClient> {
//    public StockClient create(Throwable throwable) {
//        return new StockClient() {
//            public void stock(Integer productId) {
//                log.error("减库存发生错误");
//            }
//        };
//    }
//}
